'use strict';
const db = uniCloud.database()
exports.main = async (event, context) => {
	let res = db.collection("bill").add({
		"pay": event.pay,
		"type": event.type,
		"type_desc": event.type_desc,
		"mark": event.mark,
		"createTime": event.currentDateTime
	})
	return res;
};
